/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import React, { Component } from "react";
import { Pagination } from 'antd';
import styles from "./style.less";

export default class Page extends Component {
  
    handleTableChange = (pagination) => {
        const { onChange } = this.props;
        if (onChange) {
            onChange(pagination);
        }
    };

    render() {
        const { current,count,pageSize } = this.props;
        return (
            <div className={styles.flex}>
                <Pagination current={current} total={count} onChange={this.handleTableChange} pageSize={pageSize}/>
            </div>
        );
    }
}
